package com.star.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.star.domain.Shop;
import com.baomidou.mybatisplus.extension.service.IService;
import com.star.domain.ShopType;
import com.star.domain.UserLogin;
import com.star.mapper.ShopMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
public interface ShopService extends IService<Shop> {

    /**
     * 注册操作
     *
     * @param shop
     * @return
     */
    boolean shopRegister(Shop shop, UserLogin userLogin, String areaName, ShopType shopType);

    /**
     * 查询全部
     * @param num 页数
     * @param size 限制查询长度
     * @return
     */
    IPage<Map<String, Object>> findClientPage(Integer num, Integer size);

    /**
     * 根据店铺ID查询
     * @param shopId 店铺ID
     * @return
     */
    Shop shopById(Integer shopId);

}
